PEOpenEngine
Use PEOpenEngine to prepare the Crystal Report Engine (in single-thread mode) for requests. This function is a necessary part of any Custom-Print Link. It is also required for any Print-Only Link in which you want the report to print to a window that is to remain visible after the report is printed. It is not necessary to use this function with a Print-Only Link if the report is directed to a printer.
C Syntax
BOOL CRPE_API PEOpenEngine (void);
Returns
- TRUE if the call is successful.
- FALSE if the call fails.
Remarks
- This function must be called before any other Crystal Report Engine function. If an error occurs in the PEOpenEngine function call, PEGetErrorCode, can be passed a print job value of zero to obtain error information.
- PEOpenEngine opens the print engine in single-thread mode by default.
VB Syntax
Declare Function PEOpenEngine Lib "crpe32.dll" () As Integer
Delphi Syntax
function PEOpenEngine
): Bool stdcall;
dBASE for Windows Syntax
EXTERN CLOGICAL PEOpenEngineEx () CRPE.DLL